package com.wyj.wuliwuli.entity;

import lombok.Data;

import javax.persistence.*;

/**
 * @Version 1.0
 * @Description 通知
 */
@Data
@Entity
@Table(name = "wuli_notice")
public class WuliNotice extends BaseEntity {

    @ManyToOne
    @JoinColumn(name = "video_id", columnDefinition = "bigint(20) COMMENT '视频ID'")
    private WuliVideo video;

    @ManyToOne
    @JoinColumn(name = "user_id", columnDefinition = "bigint(20) COMMENT '用户ID'")
    private WuliUser user;

    /**
     * 0 未读
     * 1 已读
     */
    @Column(columnDefinition="int(10) COMMENT '是否已读'")
    private Integer isRead;
}
